package com.siwei.mes.entity;

import java.util.Date;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;

import java.io.Serializable;

import lombok.Data;
import lombok.experimental.Accessors;

import javax.persistence.Table;
import javax.persistence.Column;
import javax.persistence.Id;
import javax.persistence.Transient;


/**
 * 工单动态(OrderDynamic)实体类
 *
 * @author makejava
 * @since 2023-12-05 09:31:36
 */
@Data
@Table(name = "t_order_dynamic")
@Accessors(chain = true)
@ApiModel(value = "OrderDynamic", description = "工单动态")
public class OrderDynamic implements Serializable {
    private static final long serialVersionUID = 172327230931235302L;
    /**
     * 主键id
     */
    @Id
    @ApiModelProperty(value = "工单动态主键ID", name = "id")
    private Long id;
    /**
     * 工单id
     */
    @Column(name = "order_id")
    @ApiModelProperty(value = "工单id", name = "orderId")
    private Long orderId;
    /**
     * 工单打卡id
     */
    @Column(name = "clock_id")
    @ApiModelProperty(value = "工单打卡id", name = "clockId")
    private Long clockId;
    /**
     * 操作人
     */
    @Column(name = "user_id")
    @ApiModelProperty(value = "操作人", name = "userId")
    private Long userId;
    /**
     * 操作人名称
     */
    @Column(name = "user_name")
    @ApiModelProperty(value = "操作人名称", name = "userName")
    private String userName;
    /**
     * 操作动作
     */
    @Column(name = "data_action")
    @ApiModelProperty(value = "操作动作", name = "dataAction")
    private String dataAction;
    /**
     * 操作类型
     */
    @Column(name = "data_type")
    @ApiModelProperty(value = "操作类型", name = "dataType")
    private String dataType;
    /**
     * 操作时间
     */
    @Column(name = "data_time")
    @ApiModelProperty(value = "操作时间", name = "dataTime")
    private Date dataTime;
    /**
     * 完整数据
     */
    @Column(name = "remark")
    @ApiModelProperty(value = "完整数据", name = "remark")
    private String remark;

    /**
     * 打开说明
     */
    @Transient
    @ApiModelProperty(value = "打开说明", name = "memo")
    private String memo;
}
